var option = {
    tooltip: {
        trigger: 'item',
        formatter: '{a} <br/>{b}: {c} ({d}%)'
    },
    series: [
        {
            name: '特种设备',
            type: 'pie',
            radius: ['55%', '80%'],
            center:['50%','50%'],
            avoidLabelOverlap: false,
            label: {
                show: false,
                position: 'center'
            },
            emphasis: {
                label: {
                    show: true,
                    fontSize: '14'
                }
            },
            labelLine: {
                show: false
            },
            data: [
                {value: 234, name: '按期检验',itemStyle:{color:'#5181ff'}},
                {value: 234, name: '检验报警',itemStyle:{color:'#958bff'}},
                {value: 234, name: '超期未检验',itemStyle:{color:'#ff688d'}},
            ]
        }
    ]
};

    var chart = echarts.init(document.getElementById('gongcheng_echart1'))
    chart.setOption(option);